package plus.lgx.textsearcher;

import plus.lgx.textsearcher.config.SearcherConfig;
import plus.lgx.textsearcher.searcher.Initializer;
import plus.lgx.textsearcher.searcher.TextSearcher;
//import plus.lgx.textsearcher.server.TextSearcherApplication;

/**
 * Class name: Main
 *
 * Create time: 12/19/22 9:14 PM
 *
 * @author lgx
 * @version 1.0
 */
public final class Main {

    public static void main(String[] args) {

        SearcherConfig config = Initializer.init(args);
        if (config.server) {
//            new TextSearcherApplication(config).startup();
            throw new RuntimeException("No sever. ");
        } else {
            new TextSearcher(config).search();
        }

    }

}
